# 用递归法求6！
def fac(n):
    if n==1:
        return 1
    else:
        return n*fac(n-1)

sum=fac(6)
print(sum)
for i in range(1,7):   #依次输入1-6的阶乘
    print(fac(i),end=' ')

print('\n--------------斐波那契----------------')

def fib(n):
    if n==1:
        return 1
    elif n==2:
        return 1
    else:
        return fib(n-1)+fib(n-2)

print(fib(6))
for num in range(1,11):
    print(fib(num),end='\t')